﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace CpuOccupation
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "CpuOccupation";

            for (int i = 0; i < 1 /*Environment.ProcessorCount - 1*/; i++)
            {
                Task.Factory.StartNew(Action);
            }

            Console.ReadLine();
        }

        static void Action()
        {
            while (true)
            {
                //Thread.Sleep(1);
                //SpinWait.SpinUntil(() => { return false; }, 1);
                //Console.WriteLine(DateTime.Now.Millisecond);
            }
        }
    }
}
